#define _CRT_SECURE_NO_WARNINGS 1

//int maxArea(int* height, int heightSize)
//{
//	int left = 0;
//	int right = heightSize - 1;
//	int max = (right - left) * (height[left] > height[right] ? height[right] : height[left]);
//	while (left < right)
//	{
//		if (((right - left) * (height[left] > height[right] ? height[right] : height[left])) > max)
//		{
//			max = (right - left) * (height[left] > height[right] ? height[right] : height[left]);
//		}
//		if (height[left] <= height[right])
//			left++;
//		else if (height[left] > height[right])
//			right--;
//	}
//	return max;
//}

int countOdds(int low, int high)
{
    int count = 0;
    if (low % 2 == 0)
    {
        if (low + 1 <= high)
            count++;
        low += 3;
    }

    for (;low <= high;low += 2, count++);

    return count;
}